package com.xyingsoft.zp.zP_Board.manager;

import java.util.UUID;

public class PlayerData {
    private final UUID uuid;
    private int onlineTime; // 在线时长（分钟）
    private int blocksBreak; // 挖掘方块数
    private int kills; // 击杀数
    private int deaths; // 死亡数
    private int experience; // 经验值
    
    public PlayerData(UUID uuid) {
        this.uuid = uuid;
        this.onlineTime = 0;
        this.blocksBreak = 0;
        this.kills = 0;
        this.deaths = 0;
        this.experience = 0;
    }
    
    public UUID getUuid() {
        return uuid;
    }
    
    public int getOnlineTime() {
        return onlineTime;
    }
    
    public void setOnlineTime(int onlineTime) {
        this.onlineTime = onlineTime;
    }
    
    public void incrementOnlineTime() {
        this.onlineTime++;
    }
    
    public int getBlocksBreak() {
        return blocksBreak;
    }
    
    public void setBlocksBreak(int blocksBreak) {
        this.blocksBreak = blocksBreak;
    }
    
    public void incrementBlocksBreak() {
        this.blocksBreak++;
    }
    
    public int getKills() {
        return kills;
    }
    
    public void setKills(int kills) {
        this.kills = kills;
    }
    
    public void incrementKills() {
        this.kills++;
    }
    
    public int getDeaths() {
        return deaths;
    }
    
    public void setDeaths(int deaths) {
        this.deaths = deaths;
    }
    
    public void incrementDeaths() {
        this.deaths++;
    }
    
    public int getExperience() {
        return experience;
    }
    
    public void setExperience(int experience) {
        this.experience = experience;
    }
    
    public void addExperience(int amount) {
        this.experience += amount;
    }
} 